﻿
@model IEnumerable<Less.DAL.Records.ConfigSettingRecord>
@{
    var grid = new WebGrid(Model);
}
<h2>Transalations</h2>
<article class="module width_half">
@grid.GetHtml(tableStyle: "tablesorter",
    columns: new[] { grid.Column("Id", 
                                        format: p => Html.ActionLink(
                                        "Edit",
                                        "TranslationEditor",
                                        new { id =p.Id },
                                        new { @class = "editLink" })),
    grid.Column("Culture"), grid.Column("Value") })
    </article>
    <article class="module width_half">
        <div id="translationEditorContainer">
        </div>
    </article>
    <script type="text/javascript">
        $(function () {
            $('.editLink').click(function () {
                $('#translationEditorContainer').load(this.href);
                return false;
            });
        });
    </script>




